This quiz is designed for Cambridge IGCSE Computer Science (0478/0984) students, aligned with the 2025 syllabus. It tests your understanding of functions and procedures in Python, focusing on defining and calling them, using parameters, and handling return values. You should know basic Python syntax and terms like 'function', 'procedure', and 'parameter' as per the syllabus. The questions use simple language and a school library scenario to match IGCSE exam expectations.
A school library uses a Python program to manage books. The code below includes functions and procedures to check books and update records. Read the code, which has line numbers, to answer the questions.
1 def calculate_fine(days_late): 2 fine = days_late * 0.50 3 return fine 4 5 def check_availability(book_list, book_name): 6 if book_name in book_list: 7 return True 8 else: 9 return False 10 11 procedure update_loan_status(borrower, book): 12 print(borrower, "has borrowed", book)
Question 1 of 10